/*****************************************************************
 MYD Engine v0.1

 File: myd_input.inl
 Created: 09/07/09
*****************************************************************/

bool Input::GetKeyDown(unsigned int uiKeyID)
{
	return ((KeyBuffer[uiKeyID] & 0x80) != 0);
}
//------------------------------------------------------------------------------
bool Input::GetKeyEventDown(unsigned int uiKeyID)
{
	return (KeyEvent[uiKeyID] == KS_DOWN);
}
//------------------------------------------------------------------------------
bool Input::GetKeyEventUp(unsigned int uiKeyID)
{
	return (KeyEvent[uiKeyID] == KS_UP);
}
//------------------------------------------------------------------------------
bool Input::GetMouseBut(unsigned int uiButID)
{
	return ((m_aucMouseBut[uiButID] & 0x80) != 0);
}
//------------------------------------------------------------------------------
bool Input::GetMouseClick(unsigned int uiButID)
{
	return (m_abMouseButClick[uiButID]);
}
//------------------------------------------------------------------------------
long Input::GetMouseScrAbsPos(unsigned int uiButID)
{
	return (m_alMouseScreenAbsPos[uiButID]);
}
//------------------------------------------------------------------------------
long Input::GetMouseRelPos(unsigned int uiButID)
{
	return (m_alMouseRelPos[uiButID]);
}
//------------------------------------------------------------------------------